/*
 * @Author: your name
 * @Date: 2022-03-26 22:17:37
 * @LastEditTime: 2022-04-03 23:21:26
 * @LastEditors: Please set LastEditors
 * @Description: 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 * @FilePath: \drivingTow\src\practice\entities\practice.entity.ts
 */
import { Column, Entity, PrimaryGeneratedColumn } from "typeorm";
import { PracticeInfoDto } from "../dto/create-practice.dto";

@Entity('practice')
export class Practice {
  @PrimaryGeneratedColumn()
  id:number;

  @Column()
  Eight:string;

  @Column()
  ten:string;

  @Column()
  twelve:string;

  @Column()
  fourteen:string;

  @Column()
  sixteen:string;

  @Column()
  coach:string;

  @Column()
  coachName:string;

  @Column()
  catogary:string;

  @Column()
  telephone:string;

  @Column()
  create_time: string;

  toResponseObject(): PracticeInfoDto {
    let responseObj: PracticeInfoDto = {
      ...this,
    };
    return responseObj;
  }
}
